<template>

<section>
<el-row  >
  <el-form ref="form" :model="form" label-width="80px">

  <el-form-item label="账号">
    <el-input v-model="form.name"></el-input>
  </el-form-item>


 <el-form-item label="密码">
    <el-input  type="password" v-model="form.pwd"></el-input>
  </el-form-item>


  <el-form-item>
    <el-button type="primary" @click="onSubmit">立即创建111</el-button>
    <el-button>取消</el-button>
  </el-form-item>
</el-form>
 
 <router-view></router-view>

</el-row>
</section>
</template>


<script>
import { requestLogin } from '@/api/api';

export default {
  name: 'hello',
  data () {
    return {
      msg: '赶紧的登陆',
      form: {
        
        },
    }
  },
  methods: {
        onSubmit(){
           requestLogin({}).then(datas => {
            alert(datas);
            this.$router.push({path:"/aa"})

             /* this.loginin  g = false;
              //NProgress.done();
              let { msg, code, data } = datas;

              if (code !== 1) {
                this.$message({
                  message: msg,
                  type: 'error'
                });
              } else {
                sessionStorage.setItem('user', JSON.stringify(data));
                this.$router.push({ path: '/storeList' });
                window.location.reload();
              }*/


            });
        },
  }
}
</script>







